package com.shop.product.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shop.product.dao.ProductTagDAO;
import com.shop.product.vo.ProductVO;

@Service
public class ProductTagServiceImpl implements ProductTagService {

	@Autowired
	private ProductTagDAO dao;
	
	@Override
	public int totalCnt() {
		return dao.totalCnt();
	}
	
	@Override
	public List<ProductVO.ProductTag> listTag(int current_page, int list_row_no) {
		return dao.listTag(current_page, list_row_no);
	}
	
	@Override
	public int addTag(ProductVO.ProductTag tagItem) {
		return dao.addTag(tagItem);
	}
	
	@Override
	public void updateTag(ProductVO.ProductTag tagItem) {
		dao.updateTag(tagItem);
	}
	
	@Override
	public void deleteTag(int seq) {
		dao.deleteTag(seq);
	}
	
	@Override
	public ProductVO.ProductTag getTag(int seq) {
		
		return dao.getTag(seq);
	}
}
